﻿@model Helper.Core.Entity.Call

@{
    Layout = null;
}
<style>
    p
    {           
        width:100%;
        font-family: Sans-Serif; 
        margin: 5px 0px 5px 0px;
    }
    .previewCall
    {
        margin: 10px 10px 10px 10px;
    }
</style>

<div class="previewCall">
<div id="previewTitle"><p><b>Assunto:</b></p> @Html.DisplayFor(x => x.Subject)</div>
<div id="previewContent"><p><b>Conteúdo:</b></p> @Html.DisplayFor(x => x.Content)</div>
@if(Model.Posts != null){
    <div id="previewLastPost"><p><b>Última resposta:</b></p> @Html.DisplayFor(x =>  x.Posts.Last<Helper.Core.Entity.Post>().Timestamp)</div>
}
</div>